home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / stat.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  2KB  |  76 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. ST_MODE = 0
  5. ST_INO = 1
  6. ST_DEV = 2
  7. ST_NLINK = 3
  8. ST_UID = 4
  9. ST_GID = 5
  10. ST_SIZE = 6
  11. ST_ATIME = 7
  12. ST_MTIME = 8
  13. ST_CTIME = 9
  14.  
  15. def S_IMODE(mode):
  16.     return mode & 4095
  17.  
  18.  
  19. def S_IFMT(mode):
  20.     return mode & 61440
  21.  
  22. S_IFDIR = 16384
  23. S_IFCHR = 8192
  24. S_IFBLK = 24576
  25. S_IFREG = 32768
  26. S_IFIFO = 4096
  27. S_IFLNK = 40960
  28. S_IFSOCK = 49152
  29.  
  30. def S_ISDIR(mode):
  31.     return S_IFMT(mode) == S_IFDIR
  32.  
  33.  
  34. def S_ISCHR(mode):
  35.     return S_IFMT(mode) == S_IFCHR
  36.  
  37.  
  38. def S_ISBLK(mode):
  39.     return S_IFMT(mode) == S_IFBLK
  40.  
  41.  
  42. def S_ISREG(mode):
  43.     return S_IFMT(mode) == S_IFREG
  44.  
  45.  
  46. def S_ISFIFO(mode):
  47.     return S_IFMT(mode) == S_IFIFO
  48.  
  49.  
  50. def S_ISLNK(mode):
  51.     return S_IFMT(mode) == S_IFLNK
  52.  
  53.  
  54. def S_ISSOCK(mode):
  55.     return S_IFMT(mode) == S_IFSOCK
  56.  
  57. S_ISUID = 2048
  58. S_ISGID = 1024
  59. S_ENFMT = S_ISGID
  60. S_ISVTX = 512
  61. S_IREAD = 256
  62. S_IWRITE = 128
  63. S_IEXEC = 64
  64. S_IRWXU = 448
  65. S_IRUSR = 256
  66. S_IWUSR = 128
  67. S_IXUSR = 64
  68. S_IRWXG = 56
  69. S_IRGRP = 32
  70. S_IWGRP = 16
  71. S_IXGRP = 8
  72. S_IRWXO = 7
  73. S_IROTH = 4
  74. S_IWOTH = 2
  75. S_IXOTH = 1
  76.